﻿@model TechnicBlog.Models.FireWorkEntity
@{
    Layout = null;
}
<script>
    function RequestError() {
        $.messager.alert('错误', '<br>请求失败！', 'error');
    }
    function checkSubmit() {
        if ($("#form0").validate()) {
            $('#loading').window('open');
            $("#form0").ajaxSubmit({ action: this.action, method: this.method });
        }
    }
</script>
<form id="form0" action="/FireWork/Add" method="post" data-ajax-failure="RequestError"
data-ajax="true">
@Html.HiddenFor(model=>model.BrandId)
<table style="color: #666666; width: 100%;">
    <tr style="height: 34px;">
        <td style="width: 25%;" align="right">
            品牌名称：
        </td>
        <td style="width: 75%;" align="left">
            <div class="editor-field">
                @Html.Raw(((TechnicBlog.Models.BrandEntity)@ViewBag.Brand).BrandName)
            </div>
        </td>
    </tr>
    <tr style="height: 34px;">
        <td style="width: 25%;" align="right">
            烟花名称：
        </td>
        <td style="width: 75%;" align="left">
            <div class="editor-field">
                @Html.TextBoxFor(model => model.FireWorkName, new { require = "true" })
            </div>
        </td>
    </tr>
    <tr style="height: 34px;">
        <td style="width: 25%;" align="right">
            品种分类：
        </td>
        <td style="width: 75%;" align="left">
            <div class="editor-field">
                @Html.DropDownListFor(model => model.CategoryId, ViewBag.CategoryList as IEnumerable<SelectListItem>, new { @style = "width:157px;" })
            </div>
        </td>
    </tr>
    <tr style="height: 34px;">
        <td style="width: 25%;" align="right">
            材质：
        </td>
        <td style="width: 75%;" align="left">
            <div class="editor-field">
                @Html.TextBoxFor(model => model.Material)
            </div>
        </td>
    </tr>
    <tr style="height: 34px;">
        <td style="width: 25%;" align="right">
            产品编号：
        </td>
        <td style="width: 75%;" align="left">
            <div class="editor-field">
                @Html.TextBoxFor(model => model.ProductCode)
            </div>
        </td>
    </tr>
    <tr style="height: 34px;">
        <td style="width: 25%;" align="right">
            描述：
        </td>
        <td style="width: 75%;" align="left">
            <div class="editor-field">
                @Html.TextAreaFor(model => model.Remark, new {  @style = "width:416px;height:100px;" })
            </div>
        </td>
    </tr>
    <tr>
        <td colspan="2">
            <a class="easyui-linkbutton" iconcls="icon-save" onclick="return checkSubmit();">提交</a>
            <a class="easyui-linkbutton" iconcls="icon-cancel" onclick="javascript:$('#divFireWorkEdit').window('close');">
                关闭</a>
        </td>
    </tr>
</table>
</form>
